import request from "@/utils/request";
import config from "@/config";
// 钱包充值
export function pay_balance(data) {
	return request({
		url: `/pw/order/balance/create`,
		headers: {
			isToken: true,
		},
		method: "post",
		data: data
	});
}
export function pay_type(data) {
	return request({
		url: `/payment_type/support/list`,
		headers: {
			isToken: true,
		},
		method: "get",
		params: data
	});
}
// 发单 余额预下单
export function pay_order_balance(data) {
	return request({
		url: `/pw/order/balance`,
		headers: {
			isToken: true,
		},
		method: "post",
		data
	});
}
// 统一支付
export function pw_pay(data) {
	return request({
		url: `/pay`,
		headers: {
			isToken: true,
		},
		method: "post",
		data
	});
}
//取消支付/pay/cancel
export function cancelpay(data) {
	return request({
		url: `/pay/cancel`,
		headers: {
			isToken: true,
		},
		method: "post",
		data
	});
}
//查询订单接口
export function pay_order(params) {
	return request({
		url: `/orders/list`,
		headers: {
			isToken: true,
		},
		method: "get",
		params
	});
}
//保证金充值统一下单
export function bzjpay(data) {
	return request({
		url: `/pw/order/deposit/create`,
		headers: {
			isToken: true,
		},
		method: "post",
		data
	});
}
//查询流水记录列表
export function inquiry (params) {
	return request({
		url: `/pw/transaction_record/list`,
		headers: {
			isToken: true,
		},
		method: "get",
		params
	});
}
// hgq订单编号查结果
export function queryOrder(params) {
	return request({
		url: `/orders/info`,
		headers: {
			isToken: true,
		},
		method: "get",
		params
	});
}